<?php

$GLOBALS['_NRESPONSE'] = new stdClass();
$GLOBALS['_NRESPONSE']->cachable = false;
$GLOBALS['_NRESPONSE']->headers  = array();
$GLOBALS['_NRESPONSE']->body	 = array();
class NResponse  {

function setBody($content){
	$GLOBALS['_NRESPONSE']->body=array((string) $content);
}

function toString(){
	ob_start();
		foreach ($GLOBALS['_NRESPONSE']->body as $content) {
			echo $content;
		}
	$contents = ob_get_contents();
	ob_clean();
	return $contents;
}


}
?>